<?php defined('SYSPATH') OR die('No direct access allowed.');class Client_Model extends ORM{	protected $has_many=array('clientdata' );		protected $sorting = array('title'=>'asc');			public function login($username, $password){		$client=ORM::factory('client')->where('username',$username)->where('password',$password)->find();		echo $client->id;		return $client->id;	}}